var structure = {
	init : function(){
		structure.header.init();
	},
	
	setCurrentSection : function(i){
		$('.admin .header .inner .main-nav li').eq(i).addClass('current');
	},
	
	header: {
		init: function(){
			structure.header.setReputation();
		},
		
		setReputation: function(){
			var el = $('.admin .header .inner .box-user-data .reputation dd.stars');
			var rep = parseFloat(el.text());
			trace(rep);
			var w = (100 / 5) * rep;
			el.find('span').width('{0}%'.format(w.round()));
		}
	} 
};

$(document).ready(structure.init);
